<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ID59C
 */
interface BIDataObj {

    public function getId($data = null);

    /**
     * can set type or other condition in $data parameter
     * for example, get display name by setting $data = array('type'=>'display")
     */
    public function getName($data = NULL);

    /**
     * load data from data store
     * @param type $data
     */
    public function load($data = NULL);

    /**
     * save data to data store
     * @param type $data
     */
    public function save($item = null);

    public static function delete($item);

    public static function find($context);

    public static function findAll($context);
}

?>
